def func(n):
    
    
    for i in range(1,n+1):   
        
        print('\t'*(n-i),end='')  
        
        for j in range(i,0,-1):
            
            print(j,end='\t')
            
        print('')
        
    print('------------------------------------------------------------------------------------------')
        
    for i in range(n):   
        
        print('\t'*i,end='')  
        
        for j in range(n-i,0,-1):
            
            print(j,end='\t')
   
        print('')

func(12)


# 各个语句之间不要用这么多空行，正常语句的话，可以不加空行
